package resource.models;

import java.awt.Point;
import java.io.Serializable;

public class Move  implements Serializable
{
	private final Point location;
	
	public Move(Point location)
	{
		this.location = new Point(location);
	}
	
	public Move(int x,int y)
	{
		location = new Point(x,y);
	}

	public int getTargetX() 
	{
		return location.x;
	}

	public int getTargetY() 
	{
		return location.y;
	}
	
	public Point getTargetPoint()
	{
		return new Point(location);
	}
}
